# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-pfp
_pkgname=pfp
pkgver=0.4.11
pkgrel=7
pkgdesc='An interpreter for 010 template scripts.'
arch=('any')
url='https://github.com/d0c-s4vage/pfp'
license=('MIT')
depends=('python' 'python-py010parser' 'python-six' 'python-intervaltree')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('1b0ebc5bbd8b450aa21ce8cf097a064cf947326b22b96d57e0200d82ce37c25055b2e644452487052b6b66c67cfa988faf2702087afcab14588678e04139f04f')

build() {
  cd $_pkgname-$pkgver
  python setup.py build
}

package() {
  cd $_pkgname-$pkgver
  python setup.py install --root="$pkgdir" --optimize=1
}

